<template>
  <div class="van-image" style="width: 100%; height: 500px;">
    <div id="demoH5"></div>

  </div>
</template>

<script>
import Pdfh5 from "pdfh5";
import {Base64} from "js-base64";
import "pdfh5/css/pdfh5.css";
export default {
  props: {
    pdfSrc: {
      type: String,
      default: "",
    },
    type: {
      type: String,
      default: "",
    }
  },
  components: {
    Pdfh5
  },
  data() {
    return {
      // pdfSrc: "https://smart-curtain.oss-cn-hangzhou.aliyuncs.com/quotation-report/70020-9baaf739cac64fb3b56994807a0573f5.pdf",//"./roomicon/111.pdf",//
    }
  },
  mounted() {

    if(this.pdfSrc != "") {
      // 普通pdf 打开方式
      this.pdfh5 = new Pdfh5("#demoH5", {
        pdfurl: this.pdfSrc
      });
    }

  },
  methods: {

  }

}
</script>